package com.attendance.service;

import com.attendance.dto.request.AttRuleRequest;
import com.attendance.entity.AttRule;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

public interface AttRuleService extends IService<AttRule> {
    
    /**
     * 创建考勤规则
     */
    void createRule(AttRuleRequest request);
    
    /**
     * 更新考勤规则
     */
    void updateRule(AttRuleRequest request);
    
    /**
     * 删除考勤规则
     */
    void deleteRule(Long id);
    
    /**
     * 获取考勤规则详情
     */
    AttRule getRule(Long id);
    
    /**
     * 分页查询考勤规则
     */
    Page<AttRule> pageRules(Integer pageNum, Integer pageSize, String ruleName);
    
    /**
     * 启用/禁用考勤规则
     */
    void updateStatus(Long id, Integer status);
} 